package com.truing.flycodebill.workbench.service.impl;

import com.truing.flycodebill.workbench.domain.BillType;
import com.truing.flycodebill.workbench.mapper.BillTypeMapper;
import com.truing.flycodebill.workbench.service.BillTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("billTypeService")
public class BillTypeServiceImpl implements BillTypeService {

    @Resource
    private BillTypeMapper billTypeMapper;

    @Override
    public BillType queryBillTypeByValue(String value) {
        return billTypeMapper.selectBillTypeByValue(value);
    }

    @Override
    public List<BillType> queryAllBillTypes() {
        return billTypeMapper.selectAllBillTypes();
    }
}
